package com.linkallcloud.web.processor;

import java.lang.reflect.Method;
import java.lang.reflect.Type;

import com.alibaba.fastjson2.JSON;
import com.linkallcloud.core.exception.BaseException;
import com.linkallcloud.core.face.message.FaceMessage;
import com.linkallcloud.web.face.annotation.Face;

public class OriginalProcessor extends FaceRequestProcessor {

    @Override
    protected FaceMessage doConvert2RealRequest(String content, Type type, Method method) throws BaseException {
        FaceMessage fr = (FaceMessage) JSON.parseObject(content, type);
        return fr;
    }

    @Override
    public Object packageResult(Object message, Face faceAnno) throws BaseException {
        return message;
    }

    @Override
    public String getSignatureIdentity() {
        return null;
    }

}
